package com.database.controller;

import com.database.service.ISuperService;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

/**
 * @Author zhang
 * @create 2022/4/2 16:43
 */
@Slf4j
@Getter
public abstract class SuperController<S extends ISuperService<T, PK>, T, PK extends Serializable> implements BaseController<T, PK> {

    public SuperController() {
    }

    @Autowired(required = false)
    protected S baseService;


    @Override
    public ISuperService<T, PK> getSuperService() {
        return this.getBaseService();
    }


}
